//==============================================================================
// Copyright 2009 Sidney Shek All Rights Reserved
//==============================================================================
// SYSTEM:        ITEC824-MajorProject-Server
// FILE NAME:	  LoginResponse.java
// DESCRIPTION:   
// AUTHOR:        sshek2
// CREATED:       17/04/2009
//
// REVISION HISTORY:
// $Author: $
// $Id:  $
//
//==============================================================================
//

package itec824.integration.model;

import java.util.Collection;
import java.util.List;

/**
 * Holds information retrieved when the user starts up the application and logs
 * into the server
 *
 * @version $Revision: $
 * @author sshek2
 */
public class LoginResponse
{
    /**
     * @return Returns the managerFlag.
     */
    public boolean isManagerFlag()
    {
        return myManagerFlag;
    }

    /**
     * @param aManagerFlag The managerFlag to set.
     */
    public void setManagerFlag(boolean aManagerFlag)
    {
        myManagerFlag = aManagerFlag;
    }

    /**
     * @return Returns the managedUsers.
     */
    public Collection<User> getManagedUsers()
    {
        return myManagedUsers;
    }

    /**
     * @param aManagedUsers The managedUsers to set.
     */
    public void setManagedUsers(Collection<User> aManagedUsers)
    {
        myManagedUsers = aManagedUsers;
    }

    /**
     * @return Returns the notifications.
     */
    public List<TimesheetNotification> getNotifications()
    {
        return myNotifications;
    }

    /**
     * @param aNotifications The notifications to set.
     */
    public void setNotifications(List<TimesheetNotification> aNotifications)
    {
        myNotifications = aNotifications;
    }
    /** Denotes whether the user is a manager of any groups (this enables 
     * specific functionality on the app
     */
    private boolean myManagerFlag;
    /**
     * List of users that the user manages
     */
    private Collection<User> myManagedUsers;
    
    /** List of notifications since the last time that the device was synced */
    private List<TimesheetNotification> myNotifications;
}
